/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;
const int N=10;
int main_1023()
{
    int arr[N]={0};
    for (int i=0;i<N ;++i )
    {
        scanf("%d",&arr[i]);
    }
    for (int i=1;i<N ;++i )
    {
        if (arr[i]>0)
        {
            printf("%d",i);
            --arr[i];
            break;
        }
    }
    for (int i=0;i<N ;++i )
    {
        int cnt=arr[i];
        for (int j=0;j<cnt ;++j )
        {
            printf("%d",i);
        }
    }
	return 0;
}
